<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        console.log(Number.isFinite(15));
        console.log(Number.isFinite(Infinity));
        console.log(Number.isFinite('foo'));
        console.log(Number.isFinite('15'));
        console.log(Number.isFinite(true));
        console.log(Number.isFinite(NaN));
        console.log(Number.isFinite(-Infinity));

        console.log('--------------');
        console.log(Number.isNaN(NaN));
        console.log(Number.isNaN(15));
        console.log(Number.isNaN('15'));
        console.log(Number.isNaN(true));
        console.log(Number.isNaN(9/NaN));
        console.log(Number.isNaN('true' / 0));
        console.log(Number.isNaN('true' / 'true'));
    </script>
</body>
</html>